package com.hirain.ms.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by caicf on 2016/9/27.
 */
public interface BaseInterfaceDao<Entity> {

    public Integer save(Entity entity);

    public Integer update(Entity entity);

    public Integer deleteById(Long id);

    public Entity findById(Long id);

    public List<Entity> findAll();

    public List<Entity> findByMap(Map<String, Object> map);

}
